SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
-- =============================================
-- Author:		Alhassan Nageh
-- Create date: 12/8/2012
-- Description:	Update SmartTech Participant By Barcode
-- =============================================
CREATE PROCEDURE [dbo].[EditSmartTechParticipantByBarcode]
	-- Add the parameters for the stored procedure here
	@Barcode varchar(MAX) = null,
	@Name varchar(50) = null, 
	@Mobile varchar(12) = null,
	@Email varchar(50)=null,
	@SchoolId int = 0,
	@WorkshopId int = 0,
	@InterviewId int =0
AS
BEGIN
	-- SET NOCOUNT ON added to prevent extra result sets from
	-- interfering with SELECT statements.
	SET NOCOUNT ON;

    -- Insert statements for procedure here
	update SmartTechParticipant
	set Name=@Name, Mobile=@Mobile, Email=@Email, 
	SchoolId=@SchoolId, WorkshopId=@WorkshopId, InterviewId=@InterviewId
	where Barcode = @Barcode;
	
END
GO
